﻿using System;
namespace 多态
{
    class Sum : Calculate
    {

        public override void DisplayResult(int X, int Y)
        {
            x = X;
            y = Y;
            sum = x + y;
            Console.WriteLine("计算结果为："+sum);
        }



    }
}
